<?php
include 'Zend/Controller/Action.php';

/**
 * Library_Custom_Controller_Action - Base class for vLib based controllers
 * 
 * @author eric
 * @version 0.1
 */
class Library_Custom_Controller_Action extends Zend_Controller_Action {
  /**
   * View object (we need to override the private one provided by the base class
   * @var Library_Custom_View_Vlib
   */
  public $view;
  
  /**
   * In this method we disable the standard view and use our own
   */
  public function init() {
    $view = new Library_Custom_View_Vlib();
    $view->setScriptPath($this->view->getScriptPaths());
    $this->view = $view;
    
    $viewRenderer = $this->_helper->getHelper('viewRenderer');
    $viewRenderer->setView($this->view);
  }
}